﻿@using System.Data
@using ZoomLa.BLL.Helper
@model ZoomLa.SQLDAL.SQL.PageSetting
@{ 
    Model.cols = 9;
    Model.url = "/AdminMVC/CRM/Contact";
}
<table class="table table-striped table-bordered" id="EGV">
    <tr>
        <td class="td_xs excel_no"></td>
        <td class="td_s">ID</td>
        <td>姓名</td>
        <td class="td_m">部门</td>
        <td class="td_m">职务</td>
        <td class="td_l">手机</td>
        <td class="td_l">邮箱</td>
        <td class="td_l">创建日期</td>
        <td class="td_m excel_no">操作</td>
    </tr>
    @foreach (DataRow dr in Model.dt.Rows)
            {
        <tr>
            <td class="excel_no"><input type="checkbox" name="idchk" value="@dr["ID"]" /></td>
            <td>@dr["ID"]</td>
            <td>@dr["Name"]</td>
            <td>@dr["DepName"]</td>
            <td>@dr["Post"]</td>
            <td>@dr["Mobile"]</td>
            <td>@dr["Email"]</td>
            <td>@DateHelper.ToDate(dr["CDate"])</td>
            <td class="excel_no">
                <a href="javascript:;" class="option_style" onclick="ShowComDiag('/AdminMVC/CRM/ContactAdd?ID=@dr["ID"]','联系人修改');"><i class="fa fa-pencil"></i></a>
                <a href="javascript:;" class="option_style" onclick="mvcpage.del({ ids: '@dr["ID"]', url: 'contact_del', confirm: '确定要删除吗' });"><i class="fa fa-trash-o"></i></a>
            </td>
        </tr>
    }
    @Html.Partial("_page", Model)
</table>